/**
 * 
 */
package pl.lodz.p.browarex.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity(name = "INGREDIENT_ORDER_REQUEST")
public class IngredientOrderRequest {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "INGREDIENTORDERID")
	private Long id;
	
	@Column(name = "ORDER_ID", nullable = false)
	private String orderId;
	
	
	@OneToMany(fetch = FetchType.EAGER , mappedBy = "ingredientOrderRequest")
	private List<IngredientOrderInfo> ingredientOrderInfo = new ArrayList<IngredientOrderInfo>(0);

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DATE", nullable = false)
	private Date date;

	@Column(name = "ORDER_STATUS", nullable = false)
	private String orderStatus;


	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}



	public List<IngredientOrderInfo> getIngredientOrderInfo() {
		return ingredientOrderInfo;
	}

	public void setIngredientOrderInfo(List<IngredientOrderInfo> ingredientOrderInfo) {
		this.ingredientOrderInfo = ingredientOrderInfo;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}



	



}
